﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace Trakt.Model
{
    public class ErrorResponse : IJsonDeserializable
    {
        public string Error { get; private set; }
        public string Description { get; private set; }

        public void Deserialize(JsonReader reader, JsonSerializer serializer)
        {
            var j = JObject.Load(reader);
            Error = (string)j["error"];
            Description = (string)j["error_description"];
        }
    }
}
